var colors = {};
var getColorBySoc = function (adcode) {
    if (adcode) {
        if (!colors[adcode]) {
            if (adcode === 110000) {
                return null;
            }
            return '#033447'
            // return '#FFFFFF'
        }
    } else {
        return null
    }
};
var disCountry = new AMap.DistrictLayer.Country({
    zIndex: 19,
    SOC: 'CHN',
    depth: 1,
    styles: {
        'fill': function (props) {
            return getColorBySoc(props.adcode_pro)
        }
    }
});
var disCountry2 = new AMap.DistrictLayer.Country({
    zIndex: 19,
    SOC: 'CHN',
    depth: 1,
    styles: {
        'fill': function (props) {
            return getColorBySoc(props.adcode_pro)
        }
    }
});
map.add(disCountry);
map2.add(disCountry2);